
package com.app.hmst.model;

import java.util.List;

import com.roscopeco.ormdroid.Entity;

public class CategoryVO extends Entity{
	public int id;
	public String no;
   	public String title;
   	public String homestayId;
   	
   	public CategoryVO(){
   		this(null, null, null);
   	}
   	
	public CategoryVO(String no, String title, String homestayId) {
		this.no = no;
		this.title = title;
		this.homestayId = homestayId;
	}
	public List<SubCategoryVO> subCategories() {
		return query(SubCategoryVO.class).where("categoryId").eq(id).executeMulti();
	}
 	
}
